package com.xujl.mvcbind.ui.statusbar.control;

import android.os.Bundle;
import android.view.View;

import com.xujl.fastlib.base.BaseFragment;
import com.xujl.mvcbind.R;
import com.xujl.mvcbind.ui.statusbar.model.NormalStatusBarFragmentModel;
import com.xujl.mvcbind.ui.statusbar.view.NormalStatusBarFragmentView;

/**
 * <pre>
 *     author : xujl
 *     e-mail : 597355068@qq.com
 *     time   : 2019/08/20
 *     desc   : 普通导航栏
 *     version: 1.0
 * </pre>
 */

public class NormalStatusBarFragmentControl extends BaseFragment<NormalStatusBarFragmentModel, NormalStatusBarFragmentView> {
    @Override
    public void init (Bundle savedInstanceState) {

    }

    @Override
    public void onClick (View view) {
        super.onClick(view);
        switch (view.getId()) {
            case R.id.iv_back:
                pop();
                break;
            case R.id.iv_menu:
                mView.toast("假装打开了菜单的样子...");
                break;
            case R.id.btn_change_text:
                mView.changeTitle(mModel.getTitle());
                break;
            case R.id.btn_change_bg:
                mView.changeBgColor(mModel.getBgColor());
                break;
            default:

                break;

        }
    }
}
